﻿using System;
using System.Collections.Generic;
using System.Text;
using DotNet.Data;
namespace DotNet.Business
{
	public class Tab_RawMaterialClassBll
	{
		Tab_RawMaterialClassDal tDal=new Tab_RawMaterialClassDal();

		#region 是否存在该记录
		/// <summary>
		/// 是否存在该记录
		/// </summary>
		public bool Exists(int RawMaterialClassID)
		{
			return tDal.Exists(RawMaterialClassID);
		}
		#endregion

		#region 获得数据列表
		/// <summary>
		/// 获得数据列表
		/// </summary>
		public IList<Tab_RawMaterialClass> GetModel()
		{
			return tDal.GetModel();
		}
		#endregion

        #region 根据父类别ID查询材料类别列表
        /// <summary>
        /// 根据父类别ID查询材料类别列表
        /// </summary>
        /// <param name="rawMaterialClassID">材料父类别ID</param>
        /// <returns></returns>
        public IList<Tab_RawMaterialClass> GetModelByFID(int rawMaterialClassID)
        {
            return tDal.GetModelByFID(rawMaterialClassID);
        }
        #endregion

        #region 根据标识列获得数据实体
        /// <summary>
		/// 根据标识列获得数据实体
		/// </summary>
		/// <param name="RawMaterialClassID">标识列</param>
		/// <returns></returns>
		public Tab_RawMaterialClass GetModel(int RawMaterialClassID)
		{
			return tDal.GetModel(RawMaterialClassID);
		}
		#endregion

		#region 修改信息
		/// <summary>
		/// 修改信息
		/// </summary>
		/// <param name="Tab_RawMaterialClass">实体</param>
		/// <returns></returns>
		public bool Update(Tab_RawMaterialClass tab_rawmaterialclass)
		{
			 return tDal.Update(tab_rawmaterialclass);
		}
		#endregion

		#region 删除信息
		/// <summary>
		/// 删除信息
		/// </summary>
		/// <param name="RawMaterialClassID">标识列</param>
		/// <returns></returns>
		public bool Delete(int RawMaterialClassID)
		{
			 return tDal.Delete(RawMaterialClassID);
		}
		#endregion

		#region 添加信息
		/// <summary>
		/// 添加信息
		/// </summary>
		/// <param name="Tab_RawMaterialClass">实体</param>
		/// <returns></returns>
		public bool Insert(Tab_RawMaterialClass tab_rawmaterialclass)
		{
			 return tDal.Insert(tab_rawmaterialclass);
		}
		#endregion
	}
}
